package org.yzl.designPatterns.templatemethod;

/**
 * 模板模式
 *
 */
public class TemplateTest {
    public static void main(String[] args) {
        AbstractTemplate abstractTemplate = new PlusTemplate();
        int result = abstractTemplate.count("6+6", "\\+");
        System.out.println("6+6 ="+result);
    }
}
